projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f694450
)
[IA64] Fix initial value of cr.pta
author
Alex Williamson
<alex.williamson@hp.com>
Thu, 5 Apr 2007 15:26:54 +0000
(09:26 -0600)
committer
Alex Williamson
<alex.williamson@hp.com>
Thu, 5 Apr 2007 15:26:54 +0000
(09:26 -0600)
The initial value of cr.pta in a vcpu is zero. So a Reserved
Register/Field fault is raised if a guest executes the following
sequence:
mov r2=cr.pta;;
...
mov cr.pta=r2
Actually, the windows installer with vcpus>=3 crashes due to this
issue.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen/arch/ia64/xen/vcpu.c
patch
|
blob
|
history
diff --git
a/xen/arch/ia64/xen/vcpu.c
b/xen/arch/ia64/xen/vcpu.c
index 65c7f2bb4de2ef1aa0748c0bfaf1bbcf387554ca..5a6de493277575c6b85df61e2051656a0695aea5 100644
(file)
--- a/
xen/arch/ia64/xen/vcpu.c
+++ b/
xen/arch/ia64/xen/vcpu.c
@@
-175,6
+175,9
@@
void vcpu_init_regs(struct vcpu *v)
VCPU(v, itv) = (1 << 16); /* timer vector masked */
}
+ /* pta.size must not be 0. The minimum is 15 (32k) */
+ VCPU(v, pta) = 15 << 2;
+
v->arch.domain_itm_last = -1L;
}